from django.contrib import admin
from .models import Carts


@admin.register(Carts)
class CartsAdmin(admin.ModelAdmin):
    list_per_page = 5
    list_display = ['cart_goods', 'cart_amount', 'cart_user']
    actions_on_top = True
    list_filter = ['cart_goods', 'cart_user']
    search_fields = ['cart_goods', 'cart_user']
